<extend name="layout:index"/>

<block name="content">
<div class="mws-panel grid_8">
	<div class="mws-panel-header">
    	<span>管理中心-系统设置</span>
    </div>
    <div class="mws-panel-body no-padding">
    	<form class="mws-form" action="/admin/system/edit1" method="post">
    		<div class="mws-form-inline">
    			<div class="mws-form-row">
    				<label class="mws-form-label">网站名称</label>
    				<div class="mws-form-item">
    					<input class="small" type="text" name="wname" value="{$res.wname}">
    				</div>
    			</div>
    			<div class="mws-form-row">
    				<label class="mws-form-label">网站标题</label>
    				<div class="mws-form-item">
    					<input class="small" type="text" name="wtitle" value="{$res.wtitle}"><br>
    					<font style="color:red;">*标题将显示在浏览器的标题栏</font>
    				</div>
    			</div>
    			<div class="mws-form-row">
    				<label class="mws-form-label">暂时关闭网站</label>
    				<div class="mws-form-item clearfix">
    					<ul class="mws-form-list inline">
    						<li><input type="radio" name="is_close" value="1" <if condition="$res.is_close eq 1">checked</if>><label>是</label></li>
    						<li><input type="radio" name="is_close" value="0" <if condition="$res.is_close eq 0">checked</if>><label>否</label></li>
    					</ul>
    				</div>
    			</div>
                 <div class="mws-form-row">
                    <label class="mws-form-label">关闭现金积分交易</label>
                    <div class="mws-form-item clearfix">
                        <ul class="mws-form-list inline">
                            <li><input type="radio" name="system_sell_time" value="1" <if condition="$res.system_sell_time eq 1">checked</if>><label>开启</label></li>
                            <li><input type="radio" name="system_sell_time" value="0" <if condition="$res.system_sell_time eq 0">checked</if>><label>关闭</label></li>
                        </ul>
                    </div>
                </div>
    			<div class="mws-form-row">
    				<label class="mws-form-label">关闭网站的原因</label>
    				<div class="mws-form-item">
    					<textarea rows="" cols="" class="small" name="desc">{$res.desc}</textarea>
    				</div>
    			</div>
    			<div class="mws-form-row">
    				<label class="mws-form-label">是否关闭注册功能</label>
    				<div class="mws-form-item clearfix">
    					<ul class="mws-form-list inline">
    						<li><input type="radio" name="is_closed" value="1" <if condition="$res.is_closed eq 1">checked</if>> <label>是</label></li>
    						<li><input type="radio" name="is_closed" value="0" <if condition="$res.is_closed eq 0">checked</if>> <label>否</label></li>
    					</ul>
    				</div>
    			</div>
    			<div class="mws-form-row">
    				<label class="mws-form-label">转账状态</label>
    				<div class="mws-form-item clearfix">
    					<ul class="mws-form-list inline">
    						<li><input type="radio" name="zhuanzhang" value="0" <if condition="$res.zhuanzhang eq 0">checked</if>> <label>关闭</label></li>
    						<li><input type="radio" name="zhuanzhang" value="1" <if condition="$res.zhuanzhang eq 1">checked</if>> <label>开启</label></li>
    					</ul>
    				</div>
    			</div>
    			<div class="mws-form-row">
    				<label class="mws-form-label">转换开启状态</label>
    				<div class="mws-form-item clearfix">
    					<ul class="mws-form-list inline">
    						<li><input type="radio" name="zhuanhuan" value="0" <if condition="$res.zhuanhuan eq 0">checked</if>> <label>关闭</label></li>
    						<li><input type="radio" name="zhuanhuan" value="1" <if condition="$res.zhuanhuan eq 1">checked</if>><label>开启</label></li>
    					</ul>
    				</div>
    			</div>
    		</div>
    		<div class="mws-button-row">
    			<input value="确认" id="btn4" class="btn btn-danger" type="submit">
    			<input value="重置" class="btn " type="reset">
    		</div>
    	</form>
    </div>
    <script>
        $('#btn4').click(function(){
            if($('textarea').val() == ''){
                var txt=  "原因不能为空";
                window.wxc.xcConfirm(txt, window.wxc.xcConfirm.typeEnum.error);
                return false;
            }
        });
    </script>  	
</div>
</block>